package com.whjfxx.terminal.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whjfxx.terminal.entity.PoFunc;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;

/**
 * Created by b.c on 2022/4/14 10:22
 */
@Repository
public interface PoFuncMapper extends BaseMapper<PoFunc> {

    /**
     * query
     * @param appId
     * @param funcName
     * @return
     */
    PoFunc selectByAppIdAndFuncName(@Param("appId") Long appId, @Param("funcName") String funcName);

    void logicDelete(@Param("id") Long id,@Param("deleteTime") LocalDateTime deleteTime);

    /**
     * 
     * @param appName
     * @param funcName
     * @return
     */
    PoFunc getByAppNameAndFuncName(@Param("appName") String appName,@Param("funcName") String funcName);
}
